import java.io.PrintStream;

public class PlayerLister {

    private String playerName;
    private PrintStream printStream;

    public PlayerLister(String playerName, PrintStream printStream) {
        this.playerName = playerName;
        this.printStream = printStream;
    }

    public static void main(String[] args) {
        PlayerLister playerLister = new PlayerLister("playerName", System.out);
        playerLister.printNames();

    }

    public void printNames() {
        printStream.println(playerName);
    }
}
